<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title am-cf">附近地点类目列表</div>
                </div>
                <div class="widget-body am-fr">
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
                        <div class="am-form-group">
                            <div class="am-btn-toolbar">
                                <div class="am-btn-group am-btn-group-sm">
                                    <a class="am-btn am-btn-primary am-radius"
                                       href="{:url('wxapp.nearby.category/add')}">
                                        <span class="am-icon-plus"></span> 添加
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="am-u-sm-12">
                        <table width="100%" class="am-table am-table-hover tpl-table-black">
                            <thead>
                            <tr>
                                <th>编号ID</th>
                                <th>一级类目ID</th>
                                <th>一级类目名称</th>
                                <th>二级类目ID</th>
                                <th>二级类目名称</th>
								<th>审核状态</th>
                            </tr>
                            </thead>
                            <tbody>
                            {if sizeof($list)>0}
                                <?php $id = 10000;?>
                                {foreach $list as $item}
                                <?php $id = $id+1;?>
                                <tr>
                                    <td class="am-text-middle">{$id}</td>
                                    <td class="am-text-middle">{$item['first_id']}</td>
                                    <td class="am-text-middle">{$item['first_name']|default='--'}</td>
                                    <td class="am-text-middle">{$item['second_id']}</td>
                                    <td class="am-text-middle">{$item['second_name']|default='--'}</td>
                                    <td class="am-text-middle">
                                        {$item['audit_status'] == 1 ? '审核中':''}
                                        {$item['audit_status'] == 2 ? '审核失败':''}
                                        {$item['audit_status'] == 3 ? '审核通过':''}
                                    </td>
                                </tr>
                                {/foreach}
                            {else /}
                                <tr>
                                    <td colspan="6" class="am-text-center">暂无记录</td>
                                </tr>
                            {/if}
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

